<template>
  <div id="app">
    <zwv-button type="danger" @click="showT">你好</zwv-button>
    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  methods:{
    showT(){
      this.$toast({
        message: "hello world!",
        duration: 3000,
        onClose: () => {
          alert("关闭了");
        }
      });
    }
  },
  mounted() {
    this.$message({
      message: "我是一个message 消息提示",
      duration: 3000,
      position: "right",
      type: "error"
    });
    
  }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
